package com.project.auth.TaskListener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * @Description
 * @Author : XIAOMING
 * @create 2023/5/31 11:29
 */
public class MyTaskListener implements TaskListener {
    @Override
    public void notify(DelegateTask task) {
        if (task.getName().equals("经理审批")){
            task.setAssignee("小明");
        }
        if (task.getName().equals("人事审批")){
            task.setAssignee("小红");
        }


    }
}
